 @extends('layouts.admin_common') @section('content')

{{Breadcrumbs::render('admin.shop_master') }}
<div class="system_tab_line"></div>

<script>
    function reBack(){
    	window.location.href=('../shoplist');
    }
    function goBack(){
        window.history.go(-1);
    }
</script>
<script src="https://ajaxzip3.github.io/ajaxzip3.js" charset="UTF-8"></script>
@if(app('env')=='production')
<script src="{{ secure_asset('js/shop.js') }}"></script>
@else
<script src="{{ asset('js/shop.js') }}"></script>
@endif
<div>
	<form id="shopForm" class="form-inline" method="post">
	<input type="hidden" placeholder="" name="ShopMaster[shop_id]"
				value="{{$allInfo[0]->shop_id}}">
		<table class="table">
			<col width="160px">
			<col width="*">
			<col width="160px">
			<col width="*">
			<tr>
				<td>会社名</td>
				<td><select name="ShopMaster[corp_id]" class="form-control">
				<?php foreach ($corpList as $corp):?>
				<?php if ($allInfo[0]->corp_id==$corp->corp_id):?>
				<option selected value="<?php echo $corp->corp_id;?>"><?php echo $corp->corp_name;?></option>
				<?php else:?>
				<option value="<?php echo $corp->corp_id;?>"><?php echo $corp->corp_name;?></option>
				<?php endif;?>

				<?php endforeach;?>
				</select> *</td>
			</tr>
			<tr>
				<td>店舗名</td>
				<td><input type="text" id="shop_name" class="form-control"
					style="width: 95%; margin-right: 5px;" placeholder=""
					name="ShopMaster[shop_name]" value="{{$allInfo[0]->shop_name}}"> *</td>
			</tr>
			<tr>
				<td>店舗名カナ</td>
				<td><input type="text" id="shop_kana" class="form-control"
					style="width: 95%; margin-right: 5px;" placeholder=""
					name="ShopMaster[shop_kana]" value="{{$allInfo[0]->shop_kana}}"> *</td>
			</tr>
			<tr>
				<td>郵便番号</td>
				<td><input type="text" id="shop_postcode" class="form-control"
					placeholder="" name="ShopMaster[shop_postcode]"
					onblur="AjaxZip3.zip2addr(this,'','ShopMaster[shop_adress]','ShopMaster[shop_adress]');"
					value="{{$allInfo[0]->shop_postcode}}"> *数字、"-"を組み合わせて入力してください</td>
			</tr>
			<tr>
				<td>住所</td>
				<td><input type="text" id="shop_adress" class="form-control"
					style="width: 95%; margin-right: 5px;" placeholder=""
					name="ShopMaster[shop_adress]" value="{{$allInfo[0]->shop_adress}}">
					*</td>
			</tr>
			<tr>
				<td>住所（ビル名）</td>
				<td><input type="text" id="shop_biru_name" class="form-control"
					style="width: 95%; margin-right: 5px;" placeholder=""
					name="ShopMaster[shop_biru_name]"
					value="{{$allInfo[0]->shop_biru_name}}"> *</td>
			</tr>
			<tr>
				<td>会社TEL</td>
				<td><input type="text" id="shop_telephone_number"
					class="form-control" placeholder=""
					name="ShopMaster[shop_telephone_number]"
					value="{{$allInfo[0]->shop_telephone_number}}">
					*数字、"-"を組み合わせて入力してください</td>
				<td>会社FAX</td>
				<td><input type="text" id="shop_fax_number" class="form-control"
					placeholder="" name="ShopMaster[shop_fax_number]"
					value="{{$allInfo[0]->shop_fax_number}}"> *数字、"-"を組み合わせて入力してください</td>
			</tr>
			<tr>
				<td>代表mail</td>
				<td><input type="text" id="shop_mail" class="form-control"
					placeholder="" name="ShopMaster[shop_mail]"
					value="{{$allInfo[0]->shop_mail}}"> *</td>
			</tr>
			<tr>
				<td>担当者</td>
				<td><input type="text" " id="stuff_name" class="form-control"
					placeholder="" name="ShopMaster[stuff_name]"
					value="{{$allInfo[0]->stuff_name}}"> *</td>
				<td>担当者カナ</td>
				<td><input type="text" id="stuff_kana" class="form-control"
					placeholder="" name="ShopMaster[stuff_kana]"
					value="{{$allInfo[0]->stuff_kana}}"> *</td>
			</tr>
			<tr>
				<td>担当TEL</td>
				<td><input type="text" id="shop_tel" class="form-control"
					placeholder="" name="ShopMaster[shop_tel]"
					value="{{$allInfo[0]->shop_tel}}"> *数字、"-"を組み合わせて入力してください</td>
			</tr>
		</table>
</div>
<table  style="width: 1300px;">
	<tr>
		<td><input type="button" value="保存" onclick="onSubmitSave('save')"
			class="pure-button pure-button-primary button_normal" /></td>
		<td><input type="button" value="キャンセル" onclick="reBack()"
			class="pure-button pure-button-primary button_normal" /></td>
		<td><input type="button" value="削除" onclick="goBack()"
			class="pure-button pure-button-primary button_normal" /></td>
	</tr>
</table>
<input type="hidden" name="_token" id="csrf-token"
	value="{{ Session::token() }}" />
</form>

@endsection
